package com.liming.common.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author liming
 * @date 2025/1/9
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "分页参数", requiredProperties = {"current", "size"})
public class PageDTO {

    @NotNull
    @Schema(description = "当前页", defaultValue = "1", example = "1", nullable = true)
    private Integer current;

    @NotNull
    @Schema(description = "每页条数", defaultValue = "10", example = "10", nullable = true)
    private Integer size;
}
